package cn.tedu._03vehicle.base.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum StatusCode {
    //所有枚举类的实例必须放在最上面;
    OPERATION_SUCCESS(2000, "操作成功"),
    OPERATION_FAILED(3000, "操作失败"),
    USERNAME_EXISTS(1000, "用户名被占用"),
    USERNAME_PASSWORD_ERROR(1001, "用户名或密码错误"),
    NOT_LOGIN(1002, "未登录"),
    UKNOWN_ERROP(9999, "服务器繁忙,请稍后再试"),
    THROWABLE_ERROR(9998,"未知异常，Throwable Error"),
    VALIDATEN_ERROR(9997, "参数验证失败"),
    FILE_UPLOAD_ERROR(9996, "文件上传失败");

    private Integer state;
    private String message;
}








